package com.dycong.common.function;

import java.util.function.IntConsumer;

/**
 * Created by dycong on 15-8-6.
 */
public interface ThrewIntConsumer extends IntConsumer {

    void threwAccept(int value) throws Throwable;

    @Override
    default void accept(int value) {
        try{
            threwAccept(value);
        }catch (Throwable e){
            throw new RuntimeException(e);
        }
    }
}
